package com.itstudio.portal.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

/**
 * (News)表实体类
 *
 * @author feng
 * @since 2024-12-13 21:39:21
 */
@Data
public class News{
    //新闻id
    private Long id;
    //新闻标题
    private String title;
    //新闻内容
    private String content;
    //缩略图
    private String thumbnail;
    //是否置顶(0否1是)
    private Integer isTop;
    //发布状态(0发布 1未发布)
    private Integer status;
    //访问量
    private Long viewCount;
    //创建人
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //更新人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    //更新事件
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除
    private Integer delFlag;
}

